/*******************************************
  Date:2017年4月23日
  Author：张建伟
  brief：这是一个我自己写的导航条
    使用方式
    DLNavigation
    {
        navigation:navigation
        ListModel
        {
            id:navigation
            ListElement{btnname:"xxx";btnnomer:"qrc:/Images/001.png";btnhover:"qrc:/Images/002.png";btnpress:"qrc:/Images/003.png"}
            ListElement{btnname:"ccc";btnnomer:"qrc:/Images/001.png";btnhover:"qrc:/Images/002.png";btnpress:"qrc:/Images/003.png"}
            ListElement{btnname:"vvv";btnnomer:"qrc:/Images/001.png";btnhover:"qrc:/Images/002.png";btnpress:"qrc:/Images/003.png"}
        }
    }
  ****************************************/
import QtQuick 2.0
Rectangle
{
    id:root_Navigation
    color: "transparent"
    property ListModel navigation: naviton.model
    width: 100
    height: 100*navigation.count+btncolumn.spacing*(navigation.count-1)
    Column
    {
        id:btncolumn
        width: 100
        spacing: 5
        Repeater
        {
            id:naviton
            model: navigation
            DLButton
            {
                id:btnname
                width: 100
                height: 100
                nomerPic: btnnomer
                hoverPic: btnhover
                pressPic: btnpress
            }
        }
    }
}
